{% extends "default.html" %}

{% load i18n %}
{% load jalali_view %}

{% block custom_meta_keywords %}{% for at in adtags %}{{ at.term}},{% endfor %}{% endblock custom_meta_keywords %}
{% block custom_meta_description %}, {% trans "Ad View" %}, {{ object.title }}{% endblock custom_meta_description %}

{% block custom_styles %}
{{ block.super }}
{% endblock custom_styles %}

{% block title %} {{ object.title }} {% endblock %}
{% block page_title %} {{ object.title }} {% endblock %}


{% block page_content %}

<!-- For messaging -->
{% if warning %}
<div style="color: orange;">{{ warning }}</div>
{% endif %}

<!-- To notify the user when the ad is not yet enabled -->
{% if not object.enabled %}
<div style="background-color: #990000; color: #fff">
{% trans "This ad is not published." %}
</div>
{% endif %}


<div class="box">
			
	<div class="notop">
		<div class="left"></div>
		<div class="right"></div>
		<div class="center"></div>
	</div>
	
	<div class="middle">
		
		
		{% include "ad/ad_display.html" %}

		{% if related_ads|length > 0 %}
		<div class="ad-rel">
			<div class="title">{% trans "Related Ads" %}</div>
			<ul>
				{% for ad in related_ads %}
					<li>{% include "ad/ad_box_short.html" %}</li>
				{% endfor %}
			</ul>
		</div>
		{% endif %}
		
		<br class="clear"/>
		
	</div>
	
	<div class="bottom">
		<div class="left"></div><div class="right"></div><div class="center"></div>
	</div>
</div>



{% endblock page_content %}
